<?php
    $link=mysqli_connect("localhost","user","*****","homestay");
    mysqli_query($link,'SET NAMES UTF8');
    if (mysqli_connect_errno($link))
      {
        echo "Failed to connect to MySQL: " . mysqli_connect_error();
      }
?>

